Skip to content

Instantly share code, notes, and snippets.

@OmerFarukOruc
OmerFarukOruc / claude.md
Last active February 2, 2026 09:12
AI Agent Workflow Orchestration Guidelines

AI Coding Agent Guidelines (claude.md)

These rules define how an AI coding agent should plan, execute, verify, communicate, and recover when working in a real codebase. Optimize for correctness, minimalism, and developer experience.


Operating Principles (Non-Negotiable)

  • Correctness over cleverness: Prefer boring, readable solutions that are easy to maintain.
  • Smallest change that works: Minimize blast radius; don't refactor adjacent code unless it meaningfully reduces risk or complexity.

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

@newtonjob
newtonjob / form.js
Created February 2, 2026 08:12
Form plugin for Alpine.js
document.addEventListener('alpine:init', () => {
Alpine.magic('form', el => () => {
return Alpine.reactive({
processing: false,
recentlySuccessful: false,
errors: {},
submit() {
return axios.post(el.action, el).then(response => {
this.errors = {};
this.recentlySuccessful = true;
@emschwartz
emschwartz / README.md
Last active February 2, 2026 09:08
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

@nouex
nouex / hyrums-law.md
Last active February 2, 2026 09:07
Hyrum-Proof APIs

Hyrum's Law in React

I was reading this and it got me thinking about Hyrum's Law. In particular it got me thinking about Hyrum's Law being applied to React.useMemo()

In the docs for useMemo() there is a section at the bottom with caveats, one of them is

React will not throw away the cached value unless there is a specific reason to do that. For example, in development, React throws away the cache when you edit the file of your component. Both in development and in production, React will throw away the cache if your component suspends during the initial mount. In the future, React may add more features that take advantage of throwing away the cache—for example, if React adds built-in support for virtualized lists in the future, it would make sense to throw away the cache for items that scroll out of the virtualized table viewport.

It's interesting that the docs would make a disclaimer about possible future behavioral changes. T

@jevakallio
jevakallio / readme.md
Last active February 2, 2026 09:07
`adb pull` from app data directory without root access

TL;DR;

com.package.name is your app identifier, and the file path is relative to the app user's home directory, e.g. '/data/user/0/com.package.name.

adb shell run-as com.package.name cp relative/path/file.ext /sdcard
adb pull /sdcard/file.ext

See long explanation below.

@Code-Gym
Code-Gym / 發佈機構清單.csv
Last active February 2, 2026 09:00
Code Gym 美股目標價發佈機構清單
序號 機構名稱 官方網站 類型 創立年份 簡介
1 Barron's https://www.barrons.com 金融週刊 1921 道瓊旗下頂尖投資刊物
2 Benzinga https://www.benzinga.com 金融新聞平台 2010 即時市場新聞和API服務
3 CNBC https://www.cnbc.com 財經電視/網站 1989 全球領先商業新聞頻道
4 Cantech Letter https://www.cantechletter.com 科技財經新聞 N/A 專注加拿大科技產業
5 Investing.com https://www.investing.com 金融入口網站 2007 全球金融市場平台
6 Investor's Business Daily https://www.investors.com 投資日報 1984 CAN SLIM投資方法論
7 MarketWatch https://www.marketwatch.com 金融資訊網站 1997 道瓊旗下市場數據平台
8 Markets Insider https://markets.businessinsider.com 市場新聞 N/A Business Insider旗下
9 Pulse 2.0 https://pulse2.com 科技商業新聞 N/A 科技創新和商業趨勢